-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: fix ESM path resolution on Windows #29574
Conversation
Can you add regression tests? |
@nodejs/platform-windows @nodejs/modules-active-members |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL!
Thanks for the PR, it looks great to merge as-is, I've just commented on if there might be more cases to catch, but let me know if the case mentioned isn't actually an issue.
Windows has some reserved file names such as "con", "prn", "nul", etc. Such files can be accessed only if the path is prefixed with "\\.\"
@nodejs/collaborators This is good to land, but might benefit from another review, especially from someone who uses Windows. |
Landed in 6265e41 |
Windows has some reserved file names such as "con", "prn", "nul", etc. Such files can be accessed only if the path is prefixed with "\\.\" PR-URL: #29574 Reviewed-By: Guy Bedford <[email protected]>
Windows has some reserved file names such as "con", "prn", "nul", etc. Such files can be accessed only if the path is prefixed with "\\.\" PR-URL: #29574 Reviewed-By: Guy Bedford <[email protected]>
Windows has some reserved file names such as
con
,prn
,nul
, etc. Such files can be accessed only if the path is prefixed with\\.\
Fixes #29572
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes